.video-scroller-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px; /* 从350px调整为300px，使其更窄一些 */
    z-index: 1000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(42, 26, 46, 0.95));
    border: 1px solid rgba(138, 43, 226, 0.5);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-scroller-container.minimized {
    transform: translateY(calc(100% - 60px));
}

.video-scroller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    cursor: pointer;
    position: relative;
}

.video-scroller-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.video-scroller-title {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.video-scroller-controls {
    display: flex;
    gap: 8px;
}

.video-scroller-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.video-scroller-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-scroller-content {
    padding: 15px;
}

.news-scroller-news {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    background: #000;
    height: 200px;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}

.news-scroller-news-item {
    padding: 10px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    margin-bottom: 10px;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-scroller-news-item:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: translateX(5px);
}

.news-scroller-news-item-title {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.news-scroller-news-item-content {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 5px;
    line-height: 1.4;
}

.news-scroller-news-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--info-color);
}

.news-scroller-news-item-source {
    background: rgba(138, 43, 226, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.news-scroller-news-item-time {
    font-style: italic;
}

.video-scroller-playlist {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 5px;
}

/* 滚动条样式 - Webkit浏览器 */
.news-scroller-news::-webkit-scrollbar,
.video-scroller-playlist::-webkit-scrollbar {
    width: 8px;
}

.news-scroller-news::-webkit-scrollbar-track,
.video-scroller-playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.news-scroller-news::-webkit-scrollbar-thumb,
.video-scroller-playlist::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--accent-color));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-scroller-news::-webkit-scrollbar-thumb:hover,
.video-scroller-playlist::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-color), var(--primary-color));
}

/* 滚动条样式 - Firefox */
.news-scroller-news,
.video-scroller-playlist {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}

.video-scroller-playlist-item {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    cursor: pointer;
    font-size: 0.9rem;
    color: #ccc;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 2px;
}

.video-scroller-playlist-item:hover {
    background: rgba(138, 43, 226, 0.2);
    color: white;
    transform: translateX(3px);
}

.video-scroller-playlist-item.active {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.3), rgba(218, 112, 214, 0.3));
    color: var(--gold);
    font-weight: bold;
}

.video-scroller-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.video-scroller-refresh {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(138, 43, 226, 0.3);
}

.video-scroller-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.5);
}

.video-scroller-episode {
    font-size: 0.85rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.video-scroller-episode::before {
    content: "📰";
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-scroller-container {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 10px;
    }
    
    .video-scroller-container.minimized {
        transform: translateY(calc(100% - 50px));
    }
    
    /* 在小屏幕上禁用固定定位，让组件可以全屏显示 */
    .video-scroller-container:-webkit-full-screen {
        position: static;
    }
}